﻿<src:WpfConfiguration x:Class="ComputerMayhem.Wpf.BatteryConfig"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:src="clr-namespace:MayhemWpf.UserControls;assembly=MayhemWpf"
             Width="400">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100" />
            <ColumnDefinition Width="200" />
            <ColumnDefinition Width="100" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <Grid Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" HorizontalAlignment="Center">
            <StackPanel>
                <RadioButton x:Name="aboveRadioButton" GroupName="RadioGroup" Content="Goes Above"/>
                <RadioButton x:Name="belowRadioButton" GroupName="RadioGroup" Content="Drops Below"/>
            </StackPanel>
        </Grid>

        <TextBlock HorizontalAlignment="Left" Style="{StaticResource ConfigLabel}" Grid.Column="0" Grid.Row="1">Battery Level:</TextBlock>
        <Slider Minimum="1" Maximum="100" Name="BatterySlider" Grid.Column="1" Grid.Row="1" />
        <TextBlock Text="{Binding ElementName=BatterySlider, Path=Value, StringFormat=\{0:F0\}}" TextAlignment="Center" TextWrapping="Wrap" Grid.Column="2" Grid.Row="1"/>

    </Grid>
</src:WpfConfiguration>